package cn.lyz.authority.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangxw
 * @since 2024-09-01
 */
@Setter
@Getter
@TableName("sys_user_role")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 角色id
     */
    @TableField(value = "role_id",insertStrategy = FieldStrategy.ALWAYS)
    private Long roleId;

    @Override
    public String toString() {
        return "SysUserRole{" +
            "userId = " + userId +
            ", roleId = " + roleId +
        "}";
    }
}
